package front_router

import (
	"blog_go/api/front_api"
	"blog_go/middleware"
)

func (r routerGroup) MessageRouter() {
	messagePai := front_api.ApiGroupApp.MessageApi
	r.POST("/send", middleware.JwtAuthHandle(), messagePai.MessageSend)
	r.GET("/list_all", middleware.JwtAuthAdmin(), messagePai.MessageListAll)
	r.POST("/list", middleware.JwtAuthHandle(), messagePai.MessageList)
	r.GET("/list_my", middleware.JwtAuthHandle(), messagePai.MessageListMy)
}
